function [ x, y ] = generateBoundaryNode( cx, cy, res )
%GENERATEBOUNDARYNODE Summary of this function goes here
%   Detailed explanation goes here

n = size(cx, 2);

x = zeros(1, n * res);
y = zeros(1, n * res);

for i = 1 : n
   i0 = i;
   i1 = mod(i, n) + 1;
   
   sx = cx(i0);
   sy = cy(i0);
   
   ex = cx(i1);
   ey = cy(i1);
   
   inx = linspace(sx, ex, res+1);
   iny = linspace(sy, ey, res+1);
   
   x(1, (i-1)*res+1:i*res) = inx(1,1:res);
   y(1, (i-1)*res+1:i*res) = iny(1,1:res);
end

end

